#include<cstdio>
#include<iostream>
using namespace std;
#define int long long 
#define fread(x) ios::sync_with_stdio(x)


signed main(){
	fread(0);
	int x;
	cin >> x;
	int wan  = x / 100000;
	
	cout << x%100000 *10 +wan;
	return 0;
}




